package org.example.controller;

import org.example.mq.SendImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/msg")
public class MsgController {
    @Autowired
    private SendImpl sender;
    @GetMapping
    public String send(String key,String message){
        sender.send1(key, message);
        return "发送成功";
    }

}
